<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>房屋信息列表</h1>
<%--显示房屋信息列表 --%>
<table border="1">
	<tr>
		<td>房屋Id</td>
		<td>房屋所处街道</td>
		<td>房屋标题</td>
		<td>发布时间</td>
	</tr>
	<s:iterator var="houseItor" value="houses" status="status">
		<s:if test="#status.even">
			<tr bgcolor="yellow">
		</s:if>
		<s:if test="#status.odd">
			<tr bgcolor="blue">
		</s:if>
			<td><s:property value="#houseItor.houseId"/></td>
			<td><s:property value="#houseItor.street.streetName"/></td>
			<td><s:property value="#houseItor.title"/></td>
			<td><s:date name="#houseItor.addDate" format="yyyy-MM"/></td>
	</s:iterator>
</table>
<s:debug/>
</body>
</html>